﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AG.Data
{
    /// <summary>
    /// </summary>
    public class AGModelDirection
    {
        public byte Id { get; set; }

        public List<AGModelFrame> Frames { get; set; }
        public AGModelDirection()
        {
            Frames = new List<AGModelFrame>();
        }

        public AGModelFrame GetFrame(int frameId)
        {
            for (int index = 0; index < Frames.Count; index++)
            {
                if (Frames[index].Id == frameId)
                {
                    return Frames[index];
                }
            }
            return null;
        }
    }
}
